<?php

namespace App\Repositories;

use Prettus\Repository\Eloquent\BaseRepository;
use Prettus\Repository\Criteria\RequestCriteria;
use App\Repositories\DormMeterRepository;
use App\Models\DormMeter;
use App\Validators\DormMeterValidator;

/**
 * Class DormMeterRepositoryEloquent.
 *
 * @package namespace App\Repositories;
 */
class DormMeterRepositoryEloquent extends BaseRepository implements DormMeterRepository
{
    /**
     * Specify Model class name
     *
     * @return string
     */
    public function model()
    {
        return DormMeter::class;
    }

    

    /**
     * Boot up the repository, pushing criteria
     */
    public function boot()
    {
        $this->pushCriteria(app(RequestCriteria::class));
    }

    protected $fieldSearchable=[
      'nfc_id'=>'like',
      'dorm.building_id',
      'dorm.dorm_type_id',

    ];

    
}
